
import React, { Component } from 'react';
import {withRouter} from "react-router-dom";

class Son extends Component {

    goUrl=()=>{
        console.log("Son组件：this.props",this.props);
    }


  render() {
    return (
        <>
      <div>Son</div>
      <input type="button" value="子组件的跳转" onClick={this.goUrl} />
      </>
    )
  }
}

export default withRouter(Son);

